#LinuxServer #Network
installing dhcp to the server though SSH
sudo apt install isc-dhcp-server
if user doesn't have the right we add it in nano /etc/sudoers : with user ALL: etc...
sudo nano /etc/dhcp/dhcpd.conf
to see the DHCP settings and edit them
Configuring [[DHCP]] Settings
we will send this file into the server with SSH (don't put comments like this in this image) ![[Pasted image 20240327114743.png]]![[Pasted image 20240327122612.png]] no space before the parantheses !
-
we connect to the WAN address of the firewall/pfSense through the FTP client
-
and copy the dhcpd.conf file to the router
-
![[Pasted image 20240327115407.png]]
-
WAN address is found on the Dashboard (172.16.254.129 in my case)
-
![[Pasted image 20240327115435.png]]
-
we will launch the DHCP service / daemon to activate it
-
to launch the service we enter
sudo systemctl start isc-dhcp-server.service -
to verify if it's active
sudo systemctl status isc-dhcp-server.service -
![[Pasted image 20240327123442.png]]
Now we see that it works on the client machine :
- ![[Pasted image 20240327123524.png]]